<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="include :: appHeader"></head>
<body ontouchstart>
<!--首页 tabbar -->
<div class="weui-tab">
    <div class="weui-tab__bd">
        <div id="tab1" class="weui-tab__bd-item weui-tab__bd-item--active">
            <img th:src="@{/img/swiper.jpg}" alt="" style="width: 100%">
            <a class="weui-cell weui-cell_access" style="margin-top: -7px">
                <div class="weui-cell__bd" style="color: #999999;" th:text="${session.user.dept  + '-' + session.user.branch + '-' + session.user.name}"></div>
                <div class="weui-cell__ft open-popup" data-target="#popup-updatePassword">修改密码</div>
            </a>
            <div th:if="${session.user.role == 1 or session.user.role == 3}" class="weui-flex" style="margin-top: 15px">
                <a class="weui-flex__item" th:href="@{/barCodeAnalyzing/scan/1}">
                    <div class="weui-grid__icon"><img th:src="@{/img/apply.png}" alt=""></div>
                    <p class="weui-grid__label">申请质检</p>
                </a>
                <a class="weui-flex__item" th:href="@{/barCodeAnalyzing/scan/3}">
                    <div class="weui-grid__icon"><img th:src="@{/img/rec.png}" alt=""></div>
                    <p class="weui-grid__label">转序接收</p>
                </a>
                <div class="weui-flex__item"></div>
                <div class="weui-flex__item"></div>
            </div>
            <div th:if="${session.user.role == 2 or session.user.role == 4}" class="weui-flex" style="margin-top: 15px">
                <a class="weui-flex__item" th:href="@{/barCodeAnalyzing/scan/2}">
                    <div class="weui-grid__icon"><img th:src="@{/img/check.png}" alt=""></div>
                    <p class="weui-grid__label">质检</p>
                </a>
                <div class="weui-flex__item"></div>
                <div class="weui-flex__item"></div>
                <div class="weui-flex__item"></div>
            </div>
        </div>
    </div>

    <div class="weui-tabbar">
        <a th:href="@{/index}" class="weui-tabbar__item weui-bar__item--on">
            <div class="weui-tabbar__icon">
                <img th:src="@{/img/me.png}" alt="">
            </div>
            <p class="weui-tabbar__label">我的信息</p>
        </a>

        <!--生产历史-->
        <a th:if="${session.user.role == 1}" th:href="@{/hisApply}" class="weui-tabbar__item">
            <div class="weui-tabbar__icon">
                <img th:src="@{/img/his_apply.png}" alt="">
            </div>
            <p class="weui-tabbar__label">历史申请</p>
        </a>
        <a th:if="${session.user.role == 1}" th:href="@{/hisRec}" class="weui-tabbar__item">
            <div class="weui-tabbar__icon">
                <img th:src="@{/img/his_rec.png}" alt="">
            </div>
            <p class="weui-tabbar__label">历史接收</p>
        </a>
        <a th:if="${session.user.role == 2}" th:href="@{/hisCheck}" class="weui-tabbar__item">
            <div class="weui-tabbar__icon">
                <img th:src="@{/img/his_check.png}" alt="">
            </div>
            <p class="weui-tabbar__label">历史质检</p>
        </a>
    </div>
</div>
<!--修改密码-->
<div id="popup-updatePassword" class="weui-popup__container popup-bottom">
    <div class="weui-popup__overlay"></div>
    <div class="weui-popup__modal">
        <div class="toolbar">
            <div class="toolbar-inner">
                <a href="javascript:void(0);" class="picker-button close-popup">关闭</a>
                <h1 class="title">修改密码</h1>
            </div>
        </div>
        <div class="modal-content">
            <form id="updatePassword-form">
                <div class="weui-cells weui-cells_form">
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">新密码</label></div>
                        <div class="weui-cell__bd">
                            <input class="weui-input" id="password" type="password"/>
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">确认密码</label></div>
                        <div class="weui-cell__bd">
                            <input class="weui-input" id="password2" type="password"/>
                        </div>
                        <div class="weui-cell__ft">
                        </div>
                    </div>
                </div>
            </form>
            <div class="weui-btn-area">
                <a class="weui-btn weui-btn_primary" href="javascript:" id="btn-updatePassword">确定</a>
            </div>
        </div>
    </div>
</div>
<div th:include="include :: appFooter"></div>
<script th:src="@{/js/app-index.js}"></script>
</body>
</html>